package componentes;

import java.awt.image.BufferedImage;

import com.uqbar.vainilla.colissions.CollisionDetector;

import comportamiento.ControlesPJ;

public class Espera extends Componente{
	
	public Espera(int x, int y, BufferedImage imagen, ControlesPJ controles, double velocidad){
		
		super(x, y, imagen, controles, velocidad);
	}
	
	public Boolean hayColision(Soldado s){
		
		return CollisionDetector.INSTANCE.collidesRectAgainstRect
		(this.getX(), this.getY(),
		(int)this.getAppearance().getWidth(), (int)this.getAppearance().getHeight(),
		s.getX(), s.getY(),
		(int)s.getAppearance().getWidth(), (int)s.getAppearance().getHeight());
		
		//return true;
	}

}
